Hi, |
Re: Placement of canavs
Usually you would do it like this: DB diag = centered "..." DBE canv = canvas (...) // specify the width here ... canv->"top"->"form" canv->"left"->"form" canv->"right"->"unattached" DBE dbeLab = label (...) dbeLab->"top"->"form" dbeLab->"left"->"spaced"->canv dbeLab->"right"->"form" show diag
Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS
|
Re: Placement of canavs Mathias Mamsch - Thu Jul 29 07:48:58 EDT 2010
Usually you would do it like this: DB diag = centered "..." DBE canv = canvas (...) // specify the width here ... canv->"top"->"form" canv->"left"->"form" canv->"right"->"unattached" DBE dbeLab = label (...) dbeLab->"top"->"form" dbeLab->"left"->"spaced"->canv dbeLab->"right"->"form" show diag
Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS
Hi Mathias, DB diag = centered "..." DBE dbeLab = label (...) dbeLab->"top"->"form" DBE canv = canvas (...) // specify the width here ... canv->"top"->"form" canv->"left"->"spaced"->dbeLab canv->"right"->"unattached" show diag
|
Re: Placement of canavs Mathias Mamsch - Thu Jul 29 07:48:58 EDT 2010
Usually you would do it like this: DB diag = centered "..." DBE canv = canvas (...) // specify the width here ... canv->"top"->"form" canv->"left"->"form" canv->"right"->"unattached" DBE dbeLab = label (...) dbeLab->"top"->"form" dbeLab->"left"->"spaced"->canv dbeLab->"right"->"form" show diag
Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS
Sorry - my alignment is not correct there. It should be: DB diag = centered "..." DBE dbeLab = label (...) dbeLab->"top"->"form" DBE canv = canvas (...) // specify the width here ... canv->"top"->"aligned"->dbeLab canv->"left"->"flush"->dbeLab canv->"right"->"unattached" show diag |
Re: Placement of canavs SystemAdmin - Thu Jul 29 08:14:10 EDT 2010
Hi Mathias, DB diag = centered "..." DBE dbeLab = label (...) dbeLab->"top"->"form" DBE canv = canvas (...) // specify the width here ... canv->"top"->"form" canv->"left"->"spaced"->dbeLab canv->"right"->"unattached" show diag
I think the errors you are getting come from somewhere else in your code. The below works for me. Regards, Mathias
void repaint(DBE graph) {
background(graph, logicalMediumIndicatorColor)
color(graph, logicalHighIndicatorColor)
ellipse(graph, 20, 20, 75, 75)
color(graph, logicalMediumIndicatorColor)
ellipse(graph, 40, 40, 5, 5)
ellipse(graph, 70, 40, 5,5)
ellipse(graph, 48, 65, 20,20)
} // repaint
DB diag = centered "CanvTest"
DBE canv = canvas(diag , 125, 125, repaint)
canv->"top"->"form"
canv->"left"->"form"
canv->"right"->"unattached"
canv->"bottom"->"form"
DBE dbeLab = label (diag, "This works perfectly")
dbeLab->"top"->"form"
dbeLab->"left"->"spaced"->canv
dbeLab->"right"->"form"
show diag
Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS
|
Re: Placement of canavs Mathias Mamsch - Thu Jul 29 08:32:19 EDT 2010
I think the errors you are getting come from somewhere else in your code. The below works for me. Regards, Mathias
void repaint(DBE graph) {
background(graph, logicalMediumIndicatorColor)
color(graph, logicalHighIndicatorColor)
ellipse(graph, 20, 20, 75, 75)
color(graph, logicalMediumIndicatorColor)
ellipse(graph, 40, 40, 5, 5)
ellipse(graph, 70, 40, 5,5)
ellipse(graph, 48, 65, 20,20)
} // repaint
DB diag = centered "CanvTest"
DBE canv = canvas(diag , 125, 125, repaint)
canv->"top"->"form"
canv->"left"->"form"
canv->"right"->"unattached"
canv->"bottom"->"form"
DBE dbeLab = label (diag, "This works perfectly")
dbeLab->"top"->"form"
dbeLab->"left"->"spaced"->canv
dbeLab->"right"->"form"
show diag
Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS
I thought it might have been incompatibility with the rest of the code, but worth checking. DB diag = centered "CanvTest" DBE spacer = canvas(diag, 5, 5, repaint) DBE canv = canvas(diag , 20, 20, repaint) spacer->"top"->"form" spacer->"left"->"form" spacer->"right"->"unattached" canv->"top"->"flush"->spacer canv->"left"->"form" canv->"right"->"unattached" canv->"bottom"->"form" DBE dbeLab = label (diag, "This works perfectly") dbeLab->"top"->"form" dbeLab->"left"->"flush"->canv dbeLab->"right"->"form" show diag |
Re: Placement of canavs Mathias Mamsch - Thu Jul 29 08:32:19 EDT 2010
I think the errors you are getting come from somewhere else in your code. The below works for me. Regards, Mathias
void repaint(DBE graph) {
background(graph, logicalMediumIndicatorColor)
color(graph, logicalHighIndicatorColor)
ellipse(graph, 20, 20, 75, 75)
color(graph, logicalMediumIndicatorColor)
ellipse(graph, 40, 40, 5, 5)
ellipse(graph, 70, 40, 5,5)
ellipse(graph, 48, 65, 20,20)
} // repaint
DB diag = centered "CanvTest"
DBE canv = canvas(diag , 125, 125, repaint)
canv->"top"->"form"
canv->"left"->"form"
canv->"right"->"unattached"
canv->"bottom"->"form"
DBE dbeLab = label (diag, "This works perfectly")
dbeLab->"top"->"form"
dbeLab->"left"->"spaced"->canv
dbeLab->"right"->"form"
show diag
Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS
Thanks, Simon |